<%-- 通用搜索条件页面(xiaogq)--%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/views/common/taglibs.jsp" %>
<head>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/common/search/search.css"/>
</head>
<!-- 搜索条件div部分start -->
<div id="searchFilter" class="searchFilter">
    <div id="conditionDiv" class="search-parts">
        <form id="filterForm">
            <table class="table_condition" cellpadding="0" cellspacing="0">
                <tbody>
                    ${condition}
                </tbody>
            </table>
        </form>
    </div>
    <!-- 搜索按钮div部分 -->
    <div class="search-button"></div>
    <div class="searchDiv">
        <button class="btn btn-primary search-button-img" tableCode="${entity.tableCode}" fields="${fields}" onclick="search('bootstrapTable','searchFilter','conditionDiv',this)"><span class="glyphicon glyphicon-search"></span>搜索</button>
        <c:if test="${showdzSearch}">
            <div class="search-made">
                <span class="search-made-txt">定制搜索:</span>
                <select class="search-select form-control" tableCode="${entity.tableCode}" fields="${fields}"  onchange="customQuery(this,'bootstrapTable','searchFilter',true)">
                    <c:if test="${ null != queryList && fn:length(queryList) > 0 }">
                        <c:forEach var="query" items="${queryList}">
                            <option value='${query.id}'>${query.name }</option>
                        </c:forEach>
                    </c:if>
                    <option class="filter-select-disabled"></option>
                    <option value='querySaveAs'>查询另存为</option>
                    <option value='myQuery'>我的查询</option>
                </select>
                <div id="customizedExtParam" style="display: none">
                    <c:if test="${null != queryList}">
                        <c:forEach var="custquery" items="${queryList}">
                            <span id="queryExtParam_${custquery.id}">${custquery.extparam}</span>
                        </c:forEach>
                    </c:if>
                </div>
            </div>
        </c:if>
    </div>
</div>
<!-- 搜索条件div部分end -->
<!-- 展示、隐藏搜索条件线条部分div -->
<div class="list-bar">
    <div class="list-arrow-wrap">
        <span class="list-arrow-top"></span>
        <span class="list-arrow-bottom"></span>
    </div>
</div>

<!-- 引入通用搜索条件js文件xiaogq -->
<script type="text/javascript" src="${ctx}/js/common/search/search.js"></script>
